<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"><head>

  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Spring MVC读书笔记--SimpleFormcontroller的全说明 - 光明天空--天道酬勤！ - JavaEye技术网站</title>
    <meta name="description" content="好多的图，干脆给张大的">
    <meta name="keywords" content="  Spring MVC读书笔记--SimpleFormcontroller的全说明">
    <link rel="shortcut icon" href="http://erichua.javaeye.com/images/favicon.ico" type="image/x-icon">
    <link href="http://erichua.javaeye.com/rss" rel="alternate" title="光明天空--天道酬勤！" type="application/rss+xml">
    <link href="281327_files/blog.css" media="screen" rel="stylesheet" type="text/css">
<link href="281327_files/green.css" media="screen" rel="stylesheet" type="text/css">
    <script src="281327_files/application.js" type="text/javascript"></script>
      <link href="281327_files/SyntaxHighlighter.css" media="screen" rel="stylesheet" type="text/css">
  <script src="281327_files/shCoreCommon.js" type="text/javascript"></script>
<script src="281327_files/hotkey.js" type="text/javascript"></script>
  <style>
    div#main {background-color: transparent; border: 0; padding: 0px; width: 740px;}
  </style>
  <link href="281327_files/ui.css" media="screen" rel="stylesheet" type="text/css">
  <script src="281327_files/compress.js" type="text/javascript"></script>
  </head><body>
    <div id="header">
      <div id="blog_site_nav">
  <a href="http://www.javaeye.com/" class="homepage">首页</a>
  <a href="http://www.javaeye.com/news">新闻</a>
  <a href="http://www.javaeye.com/forums">论坛</a>
  <a href="http://www.javaeye.com/blogs">博客</a>
  <a href="http://www.javaeye.com/job">招聘</a>
  <a href="#" onclick="return false;" id="msna"><u>更多</u> <small>▼</small></a>
  <div class="quick_menu" style="display: none;">
    <a href="http://www.javaeye.com/ask">问答</a>
    <a href="http://www.javaeye.com/wiki">知识库</a>
    <a href="http://www.javaeye.com/groups">圈子</a>
    <a href="http://www.javaeye.com/search">搜索</a>
  </div>
</div>
      <div id="user_nav">
      <a href="http://erichua.javaeye.com/login" class="welcome" title="登录">您还未登录 !</a>
    <a href="http://www.javaeye.com/all" style="color: red;">我的应用</a>
    <a href="http://erichua.javaeye.com/login">登录</a>
    <a href="http://erichua.javaeye.com/signup" class="nobg">注册</a>
  </div>
    </div>

    <div id="page">
      <div id="branding" class="clearfix">
        <div id="blog_name"><h1><a href="http://erichua.javaeye.com/">光明天空--天道酬勤！</a></h1></div>
        <div id="blog_preview"></div>
        <div id="blog_domain">永久域名 <a href="http://erichua.javaeye.com/">http://erichua.javaeye.com</a></div>
      </div>
      
      <div>
      <script type="text/javascript">
      alimama_pid="mm_11667939_1388657_6967638"; 
      alimama_titlecolor="0000FF"; 
      alimama_descolor ="000000"; 
      alimama_bgcolor="FFFFFF"; 
      alimama_bordercolor="E6E6E6"; 
      alimama_linkcolor="008000"; 
      alimama_bottomcolor="FFFFFF"; 
      alimama_anglesize="0"; 
      alimama_bgpic="0"; 
      alimama_icon="0"; 
      alimama_sizecode="tl_3x3_12"; 
      alimama_width=468; 
      alimama_height=62; 
      alimama_type=2; 
      </script>
      <script src="281327_files/inf.js" type="text/javascript">
      </script><img src="281327_files/alimamal.htm" name="alimamatmpf0.728366771711758" id="alimamatmpf0.728366771711758" style="border: 0px none ; margin: 0px; padding: 0px; width: 0px; height: 0px; vertical-align: baseline;" border="0"><iframe name="alimamaf0.728366771711758" id="alimamaf0.728366771711758" border="0" marginwidth="0" marginheight="0" style="width: 468px; height: 62px;" src="281327_files/alimama.htm" frameborder="0" scrolling="no"></iframe>  
    </div>
      <div id="content" class="clearfix">
        <div id="main">
          


          


<div class="blog_main"> 
  <div id="blog_nav">
    <div class="digg" id="d281327"><h3><a href="#" onclick='digg("blogs", 281327, false);return false;' class="digg">3顶</a><br><a href="#" onclick='digg("blogs", 281327, true);return false;' class="bury">0踩</a></h3></div>
    <div id="pre_next">
      <a href="http://erichua.javaeye.com/blog/281329" class="next" title="Spring MVC读书笔记--SimpleFormcontroller的Error处理">Spring MVC读书笔记--SimpleFormcontroller ...</a>
      |
      <a href="http://erichua.javaeye.com/blog/280528" class="pre" title="Hibernate读书笔记--@embed的理解">Hibernate读书笔记--@embed的理解</a>
    </div>
  </div>
  <div class="blog_title">
    <div class="date"><span class="year">2008</span><span class="sep_year">-</span><span class="month">11</span><span class="sep_month">-</span><span class="day">28</span></div>
    <h3 class="type_original" title="原创"><a href="http://erichua.javaeye.com/blog/281327">Spring MVC读书笔记--SimpleFormcontroller的全说明</a></h3>
                
  </div>

  <div class="blog_content">
    <p>好多的图，干脆给张大的<br>
<img class="magplus" title="点击查看原始大小图片" src="281327_files/90ed17a4-a0df-376c-b19e-73586b353ce2.jpg" alt="" width="700" height="8260">
</p>
  </div>

  
  <div class="attachments">
    
      
        <ul style="display: none;">
          <li><a href="http://dl.javaeye.com/upload/attachment/53949/90ed17a4-a0df-376c-b19e-73586b353ce2.jpg" target="_blank"><img src="281327_files/90ed17a4-a0df-376c-b19e-73586b353ce2-thumb.jpg" class="magplus" title="点击查看原始大小图片"></a></li>
          
          <li>大小: 1.4 MB</li>
        </ul>
      
    
    
      <ul>
        <li><a href="#" onclick="$$('div.attachments ul').invoke('show');$(this).up(1).hide();return false;">查看图片附件</a></li>
      </ul>
    
  </div>


  <div>
<script type="text/javascript">
google_ad_client = "pub-9971846879634397";
google_ad_slot = "8644581328";
google_ad_width = 468;
google_ad_height = 60;
</script>
<script type="text/javascript" src="281327_files/show_ads.js">
</script><script src="281327_files/expansion_embed.js"></script><script src="281327_files/test_domain.js"></script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 60px; position: relative; visibility: visible; width: 468px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 60px; position: relative; visibility: visible; width: 468px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" src="281327_files/ads.htm" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" width="468" frameborder="0" height="60" scrolling="no"></iframe></ins></ins>
</div>

  
  <div id="digg_bottom" class="clearfix"><a href="#" onclick='digg("blogs", 281327, false);return false;'><div><strong>3</strong> <br>顶</div></a><a href="#" onclick='digg("blogs", 281327, true);return false;'><div><strong>0</strong> <br>踩</div></a></div>

  <div class="blog_bottom">
    <ul>
      <li>07:54</li>
      <li>浏览 (206)</li>
            <li><a href="#comments">评论</a> (0)</li>
      
      
      
      
      <li class="last"><a href="http://www.javaeye.com/wiki/topic/281327" target="_blank" class="more">相关推荐</a></li>
    </ul>
  </div>

  <div class="blog_comment">
    <h5>评论</h5>
    <a id="comments" name="comments"></a>
    
    
    
  </div>

  <div class="blog_comment">
    <h5>发表评论</h5>
          
      
        <form action="/blog/281327" id="comment_form" method="post" onsubmit="return false;">          


  <input value="true" id="editor_bbcode_flag" type="hidden">



<div id="editor_main"><div class="clearfix" id="editor_wrapper"><div id="bbcode_emotions"><h5>表情图标</h5><img src="281327_files/icon_biggrin.gif"><img src="281327_files/icon_smile.gif"><img src="281327_files/icon_sad.gif"><img src="281327_files/icon_surprised.gif"><img src="281327_files/icon_eek.gif"><img src="281327_files/icon_confused.gif"><img src="281327_files/icon_cool.gif"><img src="281327_files/icon_lol.gif"><img src="281327_files/icon_mad.gif"><img src="281327_files/icon_razz.gif"><img src="281327_files/icon_redface.gif"><img src="281327_files/icon_cry.gif"><img src="281327_files/icon_evil.gif"><img src="281327_files/icon_twisted.gif"><img src="281327_files/icon_rolleyes.gif"><img src="281327_files/icon_wink.gif"><img src="281327_files/icon_exclaim.gif"><img src="281327_files/icon_question.gif"><img src="281327_files/icon_idea.gif"><img src="281327_files/icon_arrow.gif"></div><div id="bbcode_controllers"><div id="bbcode_toolbar"><input id="button_bold" value="B" type="button"><input id="button_italic" value="I" type="button"><input id="button_underline" value="U" type="button"><input value="Quote" type="button"><input value="Code" type="button"><input value="List" type="button"><input value="Img" type="button"><input value="URL" type="button"><input value="Flash" type="button"><input value="Table" type="button"><br>字体颜色: <select id="select_color"><option selected="selected" value="black" style="color: black;">标准</option><option value="darkred" style="color: darkred;">深红</option><option value="red" style="color: red;">红色</option><option value="orange" style="color: orange;">橙色</option><option value="brown" style="color: brown;">棕色</option><option value="yellow" style="color: yellow;">黄色</option><option value="green" style="color: green;">绿色</option><option value="olive" style="color: olive;">橄榄</option><option value="cyan" style="color: cyan;">青色</option><option value="blue" style="color: blue;">蓝色</option><option value="darkblue" style="color: darkblue;">深蓝</option><option value="indigo" style="color: indigo;">靛蓝</option><option value="violet" style="color: violet;">紫色</option><option value="gray" style="color: gray;">灰色</option><option value="white" style="color: white;">白色</option><option value="black" style="color: black;">黑色</option></select>&nbsp;字体大小: <select id="select_font"><option selected="selected" value="0">标准</option><option value="xx-small">1 (xx-small)</option><option value="x-small">2 (x-small)</option><option value="small">3 (small)</option><option value="medium">4 (medium)</option><option value="large">5 (large)</option><option value="x-large">6 (x-large)</option><option value="xx-large">7 (xx-large)</option></select>&nbsp;对齐: <select id="select_align"><option selected="selected" value="0">标准</option><option value="left">居左</option><option value="center">居中</option><option value="right">居右</option></select></div><div id="bbcode_tooltip">提示：选择您需要装饰的文字, 按上列按钮即可添加上相应的标签</div><textarea class="validate-richeditor bad-words min-length-5" cols="40" id="editor_body" name="comment[body]" rows="20" style="width: 500px; height: 350px;"></textarea></div></div></div>


<script type="text/javascript">
  var editor = new Control.TextArea.Editor("editor_body", "bbcode", false);
</script>
          <p style="text-align: right; padding-right: 30px;">您还没有登录，请<a href="http://erichua.javaeye.com/login">登录</a>后发表评论(快捷键 Alt+S / Ctrl+Enter) <input class="submit" id="quick_reply_button" name="commit" value="提交" type="submit"></p>
        </form>
        <script type="text/javascript">
          new HotKey("s",function() {$('quick_reply_button').click();},{altKey: true, ctrlKey: false});
          new HotKey(new Number(13),function() {$('quick_reply_button').click();},{altKey: false, ctrlKey: true});

          new Validation("comment_form", {immediate: false, onFormValidate: function(result, form){
    
            if(confirm('您需要登录以后才能执行这个操作，现在要登录吗？')) window.location.href = '/login';
    
        }});
        </script>
      
      </div>
</div>


<script type="text/javascript">
  dp.SyntaxHighlighter.HighlightAll('code', true, true);

  fix_image_size($$('div.blog_content img'), 700);
  function quote_comment(id) {
    new Ajax.Request('/editor/quote', {
      parameters: {'id':id, 'type':'Post'},
      onSuccess:function(response){editor.bbcode_editor.textarea.insertAfterSelection(response.responseText);}
    });
  }
</script>


        </div>

        <div id="local">
          <div class="local_top"></div>
          <div id="blog_owner">
            <div id="blog_owner_logo"><a href="http://erichua.javaeye.com/"><img alt="erichua的博客" class="logo" src="281327_files/dede6c14-8ff1-3870-b137-00660efd05d5.png" title="erichua的博客: 光明天空--天道酬勤！"></a></div>
            <div id="blog_owner_name">erichua</div>
          </div>
          
          <div id="blog_actions">
            <ul>
              <li>浏览: 35348 次</li>
              
              <li>来自: 远方</li>
              <li><img src="281327_files/offline.gif"></li>
              <li>
                <a href="http://erichua.javaeye.com/blog/profile" class="profile">详细资料</a>
                <a href="http://erichua.javaeye.com/blog/guest_book" class="guest_book">留言簿</a>
              </li>
              
            </ul>
            <h5>搜索本博客</h5>
            <form action="/blog/search" method="get">              <input class="text" id="query" name="query" style="margin-left: 10px; width: 110px;" type="text">
              <input class="submit" value="搜索" type="submit">
            </form>          </div>
          
            <div id="user_visits" class="clearfix">
              <h5>最近访客 <span style="font-weight: normal; font-size: 12px; padding-left: 30px;"><a href="http://erichua.javaeye.com/blog/user_visits">&gt;&gt;更多访客</a></span></h5>
              
                <div class="user_visit">
                  <div class="logo"><a href="http://xzj127.javaeye.com/" target="_blank"><img alt="xzj127的博客" class="logo" src="281327_files/8c702b5a-fb1c-3fa3-9dcd-68e86f9d9cdc-thumb.gif" title="xzj127的博客: xzj127"></a></div>
                  <div class="left"><a href="http://xzj127.javaeye.com/" target="_blank">xzj127</a></div>
                </div>
              
                <div class="user_visit">
                  <div class="logo"><a href="http://powerliu.javaeye.com/" target="_blank"><img alt="powerliu的博客" class="logo" src="281327_files/user-logo-thumb.gif" title="powerliu的博客: "></a></div>
                  <div class="left"><a href="http://powerliu.javaeye.com/" target="_blank">powerliu</a></div>
                </div>
              
                <div class="user_visit">
                  <div class="logo"><a href="http://beck-jn.javaeye.com/" target="_blank"><img alt="beck_jn的博客" class="logo" src="281327_files/user-logo-thumb.gif" title="beck_jn的博客: "></a></div>
                  <div class="left"><a href="http://beck-jn.javaeye.com/" target="_blank">beck_jn</a></div>
                </div>
              
                <div class="user_visit">
                  <div class="logo"><a href="http://lingyun85425.javaeye.com/" target="_blank"><img alt="lingyun85425的博客" class="logo" src="281327_files/user-logo-thumb.gif" title="lingyun85425的博客: "></a></div>
                  <div class="left"><a href="http://lingyun85425.javaeye.com/" target="_blank">lingyun85425</a></div>
                </div>
              
            </div>
          
                      <div id="blog_menu">
              <h5>博客分类</h5>
              <ul>
                <li><a href="http://erichua.javaeye.com/">全部博客 (104)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/39055">JAVA (13)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/39056">JSP (1)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/39057">EXTJS (15)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/39058">SPRING (11)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/39060">Hibernate (3)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/50944">JQuery (32)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/55907">技巧 (5)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/61006">JavaScript (2)</a></li>
                
                  <li><a href="http://erichua.javaeye.com/category/62383">CSS (1)</a></li>
                
              </ul>
            </div>
            
            
            <div id="blog_others">
              <h5>其他分类</h5>
              <ul>
                <li><a href="http://erichua.javaeye.com/blog/favorite">我的收藏</a> (0)</li>
                                                <li><a href="http://erichua.javaeye.com/blog/forum">我的论坛帖子</a> (40)</li>
                <li><a href="http://erichua.javaeye.com/blog/article">我的精华良好贴</a> (0)</li>
                              </ul>
            </div>
            
            <div id="recent_groups">
              <h5>最近加入圈子</h5>
              <ul>
                
                  <li><a href="http://css.group.javaeye.com/">CSS探讨</a></li>
                
                  <li><a href="http://jquery.group.javaeye.com/">Jquery</a></li>
                
                  <li><a href="http://english.group.javaeye.com/">英语学习</a></li>
                
                  <li><a href="http://eclipsercpforum.group.javaeye.com/">Eclipse PlugIns&amp;RCP&amp;OSGI</a></li>
                
                  <li><a href="http://jsfgroup.group.javaeye.com/">JSF</a></li>
                
              </ul>
            </div>
            
              <div id="user_links">
                <h5>链接</h5>
                <ul>
                  
                    <li><a href="http://www.sqlinform.com/" target="_blank">sql format</a></li>
                  
                    <li><a href="http://ajaxian.com/" target="_blank">ajax</a></li>
                  
                    <li><a href="http://www.dbebooks.ws/" target="_blank">ebooks</a></li>
                  
                    <li><a href="http://bbs.okajax.com/?fromuser=erichua" target="_blank">okajax</a></li>
                  
                </ul>
              </div>
            
            
                          <div id="month_blogs">
                <h5>存档</h5>
                <ul>
                  
                    <li><a href="http://erichua.javaeye.com/blog/monthblog/2009-08">2009-08</a> (1)</li>
                  
                    <li><a href="http://erichua.javaeye.com/blog/monthblog/2009-05">2009-05</a> (3)</li>
                  
                    <li><a href="http://erichua.javaeye.com/blog/monthblog/2009-04">2009-04</a> (9)</li>
                  
                  <li><a href="http://erichua.javaeye.com/blog/monthblog_more">更多存档...</a></li>
                </ul>
              </div>
                        <div id="recent_comments">
              <h5>最新评论</h5>
              <ul>
                
                  <li>
                    <a href="http://erichua.javaeye.com/blog/319074#comments" title="JQuery读书笔记--正则表达式的处理">JQuery读书笔记--正则表达 ...</a><br>
                    test方法，exec方法好像js本身就支持，用不着jquery吧<br>
                    -- by <a href="http://kevooo.javaeye.com/" target="_blank">kevooo</a>
                  </li>
                
                  <li>
                    <a href="http://erichua.javaeye.com/blog/301143#comments" title="JQuery读书笔记--JSON Validation的全总结">JQuery读书笔记--JSON Val ...</a><br>
                    垃圾 放张图片上去 看都没法看 该博客尽早关了吧<br>
                    -- by <a href="http://dc2002007.javaeye.com/" target="_blank">dc2002007</a>
                  </li>
                
                  <li>
                    <a href="http://erichua.javaeye.com/blog/387159#comments" title="Eclipse的插件 links 安装方法补充">Eclipse的插件 links 安 ...</a><br>
                    
Supported dropins formats 
The dropins ...<br>
                    -- by <a href="http://eclipse2008.javaeye.com/" target="_blank">eclipse2008</a>
                  </li>
                
                  <li>
                    <a href="http://erichua.javaeye.com/blog/387159#comments" title="Eclipse的插件 links 安装方法补充">Eclipse的插件 links 安 ...</a><br>
                    是直接解压缩插件到dropins里，如果去除了，下次最好用如下命令eclipse  ...<br>
                    -- by <a href="http://julysea.javaeye.com/" target="_blank">Julysea</a>
                  </li>
                
                  <li>
                    <a href="http://erichua.javaeye.com/blog/387159#comments" title="Eclipse的插件 links 安装方法补充">Eclipse的插件 links 安 ...</a><br>
                    不知道是我的插件问题还是配置的问题<br>
                    -- by <a href="http://hxds143.javaeye.com/" target="_blank">hxds143</a>
                  </li>
                
              </ul>
            </div>
            <div id="comments_top">
              <h5>评论排行榜</h5>
              <ul>
                
                  <li><a href="http://erichua.javaeye.com/blog/337679" title="JQuery读书笔记--JQuery库中的Type技巧总结-1">JQuery读书笔记--JQuery库中的Type技巧总结 ...</a></li>
                
                  <li><a href="http://erichua.javaeye.com/blog/387159" title="Eclipse的插件 links 安装方法补充">Eclipse的插件 links 安装方法补充</a></li>
                
                  <li><a href="http://erichua.javaeye.com/blog/309058" title="JQuery读书笔记--JQuery几个必用的Plug-in">JQuery读书笔记--JQuery几个必用的Plug-in</a></li>
                
                  <li><a href="http://erichua.javaeye.com/blog/316547" title="生活笔录--7步让你在新年找到好工作">生活笔录--7步让你在新年找到好工作</a></li>
                
                  <li><a href="http://erichua.javaeye.com/blog/308679" title="2009年的祝愿">2009年的祝愿</a></li>
                
              </ul>
            </div>
            <div id="rss">
              <ul>
                <li><a href="http://erichua.javaeye.com/rss" target="_blank"><img alt="Rss" src="281327_files/rss.png"></a></li>
                <li><a href="http://fusion.google.com/add?feedurl=http://erichua.javaeye.com/rss" target="_blank"><img alt="Rss_google" src="281327_files/rss_google.gif"></a></li>
                <li><a href="http://www.zhuaxia.com/add_channel.php?url=http://erichua.javaeye.com/rss" target="_blank"><img alt="Rss_zhuaxia" src="281327_files/rss_zhuaxia.gif"></a></li>
                <li><a href="http://www.xianguo.com/subscribe.php?url=http://erichua.javaeye.com/rss" target="_blank"><img alt="Rss_xianguo" src="281327_files/rss_xianguo.jpg"></a></li>
                <li><a href="http://www.google.com/search?hl=zh-CN&amp;q=RSS">[什么是RSS?]</a></li>
              </ul>
            </div>
            <div class="local_bottom"></div>
          
        </div>
      </div>

      <div id="footer" class="clearfix">
        <div id="copyright">
          <hr>
          声明：JavaEye文章版权属于作者，受法律保护。没有作者书面许可不得转载。若作者同意转载，必须以超链接形式标明文章原始出处和作者。<br>
          © 2003-2009 JavaEye.com.   All rights reserved. 上海炯耐计算机软件有限公司 [ 沪ICP备05023328号 ]
        </div>
      </div>
    </div>
    
<script type="text/javascript">
  document.write("<img src='http://stat.javaeye.com/?url="+ encodeURIComponent(document.location.href) + "&referrer=" + encodeURIComponent(document.referrer) + "&logged_in=no" + "' width='0' height='0' />");
</script><img src="281327_files/a.gif" width="0" height="0">
    
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="281327_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5782003-1");
pageTracker._trackPageview();
</script>
      
  </body></html>